<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
<div class="content">

<div class="cLineB">
  <h4>文章分类管理 <span class="FAQ">设置好分类，在图文编辑的时候就可以选择分类，系统会自动生成一个3G网站。</span></h4>
  
 </div>
         <div class="cLineC" style="line-height: 32px;">
 <a  target="ddd" href="<%=path%>/user/classify!add.do" class="btnGrayS vm bigbtn" >添加文章分类</a>　 
</div>
 
 <div class="msgWrap form">

<div class="bdrcontent">
<div id="div_ptype">
<table class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
<thead>
<tr>
                    <th style=" width:120px;">分类名称</th>
                   <th style=" width:120px;">分类描述</th>
<th style=" width:70px;">显示顺序</th>
<th>分类图片外链地址(宽720高400) <a href="forum.php?mod=viewthread&amp;tid=70" target="999" class="tooltips" ><img src="{iMicro::RES}/images/price_help.png" align="absmiddle" /><span>
<p>分类图片最佳尺寸：宽720高400</p>
<p>微友之家暂不支持上传图片，请把图片上传到腾讯微博，再这里填写图片的外链地址。</p>
<p>如果不填写分类图片地址系统将随机分配默认图片。</p>
</span></a></th>
                        <th>外链网站或活动 <span class="tooltips" ><img src="{iMicro::RES}/images/price_help.png" align="absmiddle" /><span>
<p>比如你想跳转到百度，就填写<a class="red">http://www.baidu.com</a></p>
<p>不需要跳转就不用填写，还可以外链活动，</p>
<p>直接填写活动外链地址：<a class="red">大转盘387</a></p>
</span></span></th>
<th style=" width:80px;"  >首页显示</th>
                        <th style=" width:100px;" class="norightborder">操作</th>
</tr>
</thead>
<c:forEach items="${page.content}" var="vo">
<tr>
<td>${vo.name}</td>
<td>${vo.info}</td>
<td>${vo.sorts}</td>
<td><div class="cateimg"><img src="${vo.imgsrc}" class="cateimg_small"  /><img src="${vo.imgsrc}" class="cateimg_big"  /></div></td>
<td><c:if test="${vo.url=='' }">无</c:if> ${vo.url}</td>
<td>
<c:choose>
<c:when test="${vo.status=='1'}">显示</c:when>
<c:when test="${vo.status=='0'}">不显示</c:when>
</c:choose>
</td>
<td class="norightborder">
	<a target="ddd" href="<%=path%>/user/classify!edit.do?id=${vo.id}">编辑</a>
	<a href="<%=path%>/user/classify!delete.do?id=${vo.id}">删除</a>
</td>
</tr>
</c:forEach>
               
  </table>
</div>
</div>
<div class="footactions" style="padding-left:10px">
  <div class="pages">${page.currPage}/${page.pages}页 <span><c:if test="${page.currPage<page.pages}"><a href="<%=path%>/user/classify!index.do?p=${page.currPage+1}">下一页</a></c:if></span>
  <span><c:if test="${page.currPage>1}"><a href="<%=path%>/user/classify!index.do?p=${page.currPage-1}">上一页</a></c:if></span></div>
</div>
          </div>
  
        </div>
   
        <div class="clr"> </div>
      </div>
    </div>
  </div> 
  <!--底部-->
  	</div>

<include file="Public:footer"/>